package com.guosheng.test20181219;

public class CartoonObserver implements Observer{

    @Override
    public void update(Subject subject, Object data) {
        System.out.println("我是" + subject.getClass().getSimpleName()+", "+data+"别看漫画了");
    }

    public void run(){
        System.out.println("老师来了，快跑啊！！！");
    }
}
